<?php
/* Author: Matt Belanger, aka Zurvan on 2+2 Forums
 * Date: January 5, 2010
 * Contributors: 
 */
$roles = array(9  =>  array('v' => '6', 'w' => '2', 's' => '1'),
               11  => array('v' => '8', 'w' => '2', 's' => '1'),
               13  => array('v' => '9', 'w' => '3', 's' => '1'),
               15  => array('v' => '11', 'w' => '3', 's' => '1'),
               17  => array('v' => '12', 'w' => '4', 's' => '1'),
               19  => array('v' => '14', 'w' => '4', 's' => '1'),
               21  => array('v' => '14', 'w' => '5', 's' => '2'),
               23  => array('v' => '16', 'w' => '5', 's' => '2'),
               25  => array('v' => '17', 'w' => '6', 's' => '2'),
               27  => array('v' => '19', 'w' => '6', 's' => '2'),
               29  => array('v' => '20', 'w' => '7', 's' => '2'),
               31  => array('v' => '22', 'w' => '7', 's' => '2'),
               33  => array('v' => '22', 'w' => '8', 's' => '3'),
               35  => array('v' => '24', 'w' => '8', 's' => '3'),
               37  => array('v' => '25', 'w' => '9', 's' => '3'),
               39  => array('v' => '27', 'w' => '9', 's' => '3'),
               );

function isOver($w, $v, $s) {
  if ($w==0) {
    return true;
  }
  if ($w>=($v+$s)) {
    return true;
  }
  return false;
}

?>